package com.sherlockHolmes.init.base.utils;

import java.util.Random;
import java.util.UUID;
//生成唯一id
public  class Uid {
    public static String getUid(){
        return UUID.randomUUID().toString()+System.currentTimeMillis();
    }
    public static String getAccount(){
        Random random = new Random(10);
        StringBuffer buffer = new StringBuffer();
        for (int j = 0; j < 10; j++) {
            buffer.append(random.nextInt(10));
        }

        return buffer.toString();
    }
}
